home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_joe.idb / usr / freeware / lib / joe / jstarrc.z / jstarrc
Encoding:
Text File  |  1999-01-26  |  14.8 KB  |  560 lines

  1.  
  2.                          Initialization file for JOE
  3.                            WordStar / Turbo-C Joe
  4.  
  5.  JOE looks for this file in:
  6.     1 - .jstarrc
  7.     2 - $HOME/.jstarrc
  8.     3 - /usr/local/lib/jstarrc
  9.  
  10.  This file can include other files by placing the following include command
  11.  in the first column:
  12.  
  13.  :include filename
  14.  
  15.  FIRST SECTION: Default global options (these options can also be specified
  16.  on the command line.  Also the NOXON, LINES, COLUMNS, DOPADDING and BAUD
  17.  options can be specified in environment variables):
  18.  
  19.  Put each option you want set in the first column:
  20.  
  21.  -option    Sets the option
  22.  --option    Clears the option
  23.  
  24.  -mid        Cursor is recentered when scrolling is necessary
  25.  -marking    Text between ^KB and cursor is highlighted (use with -lightoff)
  26.  -asis        Characters 128 - 255 shown as-is
  27.  -force        Force final newline when files are saved
  28.  -nobackups    If you don't want backup files to be created
  29.  -lightoff    Turn off highlighting after block copy or move
  30.  -exask        ^KX always confirms file name
  31.  -beep        Beep on errors and when cursor goes past extremes
  32.  -nosta        Disable top-most status line
  33.  -keepup    %k and %c status line escape sequences updated frequently
  34.  -pg nnn    No. lines to keep for PgUp/PgDn
  35.  -csmode    ^KF after a pervious search does a ^L instead
  36.  -backpath path Directory to store backup files
  37.  -nonotice    Disable copyright notice
  38. -noxon        Attempt to turn off ^S/^Q processing
  39.  -orphan    Put extra files given on command line in orphaned buffers
  40.         instead of in windows
  41.  -dopadding    Output pad characters (for when there is no tty handshaking)
  42.  -lines nnn    Set no. screen lines
  43.  -baud nnn    Set baud rate for terminal optimizations
  44.  -columns nnn    Set no. screen columns
  45.  -help        Start with help on
  46.  -skiptop nnn    Don't use top nnn lines of the screen
  47.  
  48.  Status line definition strings.  -lmsg defines the left-justified string and
  49.  -rmsg defines the right-justified string.  The first character of -rmsg is
  50.  the background fill character.  The following escape sequences can be used
  51.  in these string:
  52.  
  53.   %t  12 hour time
  54.   %u  24 hour time
  55.   %T  O for overtype mode, I for insert mode
  56.   %W  W if wordwrap is enabled
  57.   %I  A if autoindent is enabled
  58.   %X  Rectangle mode indicator
  59.   %n  File name
  60.   %m  '(Modified)' if file has been changed
  61.   %*  '*' if file has been changed
  62.   %R  Read-only indicator
  63.   %r  Row (line) number
  64.   %c  Column number
  65.   %o  Byte offset into file
  66.   %O  Byte offset into file in hex
  67.   %a  Ascii value of character under cursor
  68.   %A  Ascii value of character under cursor in hex
  69.   %p  Percent of file cursor is at
  70.   %l  No. lines in file
  71.   %k  Entered prefix keys
  72.   %S  '*SHELL*' if there is a shell running in window
  73.   %M  Macro recording message
  74.  
  75.  The formatting escape sequences may also be given:
  76.  
  77.   \i  Inverse
  78.   \u  Underline
  79.   \b  Bold
  80.   \d  Dim
  81.   \f  Blink
  82.  
  83. -lmsg \i%k%T%W%I%X %n %m%R %M
  84. -rmsg  %S Row %r Col %c %t  Ctrl-J for help
  85.  
  86.  SECOND SECTION: File name dependant local option settings:
  87.  
  88.  Each line with '*' in the first column indicates the modes which should be
  89.  files which match the regular expression.  If more than one regular
  90.  expression matches the file name, than the last matching one is chosen.
  91.  
  92.  Here is a list of modes which can be set:
  93.  
  94.     -wordwrap        Wordwrap
  95.     -autoindent        Auto indent
  96.     -overwrite        Overtype mode
  97.     -lmargin nnn        Left margin
  98.     -rmargin nnn        Right margin
  99.     -tab nnn        Tab width
  100.     -indentc nnn        Indentation character (32 for space, 9 for tab)
  101.     -istep nnn        Number of indentation columns
  102.     -french            One space after '.', '?' and '!' for wordwrap
  103.                 and paragraph reformat instead of two.  Joe
  104.                 does not change the spacing you give, but
  105.                 sometimes it must put spacing in itself.  This
  106.                 selects how much is inserted.
  107.  
  108.     -spaces            TAB inserts spaces instead of tabs.
  109.  
  110.     -linums            Enable line numbers on each line
  111.     -rdonly            File is read-only
  112.     -keymap name        Keymap to use if not 'main'
  113.     -lmsg            Status line definition strings-
  114.     -rmsg            see previous section for more info.
  115.     -mnew macro        Macro to execute when new files are loaded
  116.     -mold macro        Macro to execute when existing files are loaded
  117.     -msnew macro        Macro to execute when new files are saved
  118.     -msold macro        Macro to execute when existing files are saved
  119.  
  120.     Macros for the above options are in the same format as in the key
  121.     binding section below- but without the key name strings.
  122.  
  123. *
  124. -wordwrap
  125.  
  126. *.c
  127. -autoindent
  128.  
  129. *.h
  130. -autoindent
  131.  
  132. *akefile
  133. *AKEFILE
  134. *rc
  135.  
  136. *.p
  137. -autoindent
  138.  
  139.  THIRD SECTION: Named help screens:
  140.  
  141.  Use \i to turn on/off inverse video
  142.  Use \u to turn on/off underline
  143.  Use \b to turn on/off bold
  144.  Use \d to turn on/off dim
  145.  Use \f to turn on/off flash
  146.  
  147. {Basic
  148. \i   Help Screen    turn off with ^J     more help with ESC . (^[.)              \i
  149. \i \i\uCURSOR\u           \uGO TO\u            \uBLOCK\u     \uDELETE\u    \uMISC\u         \uEXIT\u      \i \i
  150. \i \i^S left ^D right ^R  prev. screen ^KB begin ^G  char  ^B  reformat ^KX save  \i \i
  151. \i \i^E up   ^X down  ^C  next screen  ^KK end   ^Y  line  ^V  overtype ^KQ abort \i \i
  152. \i \i^A previous word ^QS beg. of line ^KV move  ^T  >word ^]  refresh  ^KZ shell \i \i
  153. \i \i^F next word     ^QD end of line  ^KC copy  ^QY >line ^O  options  \uFILE\u      \i \i
  154. \i \i\uSEARCH\u           ^QR top of file  ^KW file  ^U  undo  \uSPELL\u        ^KE new   \i \i
  155. \i \i^QF find text    ^QC end of file  ^KY delete ^^ redo  ^QN word     ^KR insert\i \i
  156. \i \i^L  find next    ^QI to line No.  ^K/ filter          ^QL file     ^KD save  \i \i
  157. }
  158.  
  159. {Windows
  160. \i   Help Screen    turn off with ^J     prev. screen ^[,    next screen ^[.     \i
  161. \i \i^KO Split the window in half           ^KE Load file into window             \i \i
  162. \i \i^KG Make current window bigger         ^KT Make current window smaller       \i \i
  163. \i \i^KN Go to the window below             ^KP Go to the window above            \i \i
  164. \i \i^KQ Eliminate the current window       ^KI Show all windows / Show one window\i \i
  165. }
  166.  
  167. {Advanced
  168. \i   Help Screen    turn off with ^J     prev. screen ^[,    next screen ^[.     \i
  169. \i \iMACROS      MISC            SCROLL    SHELL       GOTO       I-SEARCH        \i \i
  170. \i \i^[( Record  ^Q? status      ^Q. Right ^K' Window  ^QB to ^KB ^[R Backwards   \i \i
  171. \i \i^[) Stop    ^QQ repeat      ^Q, Left  ^[! Command ^QK to ^KK ^[S Forwards    \i \i
  172. \i \i^[ 0-9 Play ^QM Math                  QUOTE       DELETE     BOOKMARKS       \i \i
  173. \i \i^[? Query   ^KA Center line           ^P Ctrl-    ^[Y yank   ^K 0-9 Set      \i \i
  174. \i \i^[D Dump    ^[H Message               ^\\ Meta-    ^[O word<  ^Q 0-9 Goto     \i \i
  175. }
  176.  
  177. {Programs
  178. \i   Help Screen    turn off with ^J     prev. screen ^[,    next screen ^[.     \i
  179. \i \iGOTO                INDENT    COMPILING                                      \i \i
  180. \i \i^Q[ Mathcing ( [ {  ^K. more  ^[C Compile and parse errors                   \i \i
  181. \i \i^QP Previous place  ^K, less  ^[E Parse errors                               \i \i
  182. \i \i^K= Next place                ^[= Goto next error                            \i \i
  183. \i \i^K; Tags file srch            ^[- Goto previous error                        \i \i
  184. }
  185.  
  186. {Search
  187. \i   Help Screen    turn off with ^J     prev. screen ^[,    next screen ^[.     \i
  188. \i \iSpecial search sequences:                                                    \i \i
  189. \i \i    \\^  \\$  matches beg./end of line     \\?     match any single char        \i \i
  190. \i \i    \\<  \\>  matches beg./end of word     \\*     match 0 or more chars        \i \i
  191. \i \i    \\c     matches balanced C expression \\\\     matches a \\                  \i \i
  192. \i \i    \\[..]  matches one of a set          \\n     matches a newline            \i \i
  193. \i \i    \\+     matches 0 or more of the character which follows the \\+           \i \i
  194. \i \iSpecial replace sequences:                                                   \i \i
  195. \i \i    \\&     replaced with text which matched search string                    \i \i
  196. \i \i    \\0 - 9 replaced with text which matched Nth \\*, \\?, \\c, \\+, or \\[..]     \i \i
  197. \i \i    \\\\     replaced with \\               \\n     replaced with newline        \i \i
  198. }
  199.  
  200. {Names
  201. \i   Help Screen    turn off with ^J     prev. screen ^[,    next screen ^[.     \i
  202. \i \i Hit TAB at file name prompts to generate menu of file names                 \i \i
  203. \i \i Or use up/down keys to access history of previously entered names           \i \i
  204. \i \i Special file names:                                                         \i \i
  205. \i \i      !command                 Pipe in/out of a shell command                \i \i
  206. \i \i      >>filename               Append to a file                              \i \i
  207. \i \i      -                        Read/Write to/from standard I/O               \i \i
  208. \i \i      filename,START,SIZE      Read/Write a part of a file/device            \i \i
  209. \i \i          Give START/SIZE in decimal (255), octal (0377) or hex (0xFF)       \i \i
  210. }
  211.  
  212. {Joe
  213. \i   Help Screen    turn off with ^J     prev. screen ^[,                        \i
  214. \i \i Send bug reports to: Joe Allen (jhallen@world.std.com)                      \i \i
  215. }
  216.  
  217.  FOURTH SECTION: Key bindings:
  218.  
  219.  Section names you must provide:
  220.  
  221.     :main        For editing window
  222.     :prompt        For prompt lines
  223.     :query        For single-character query lines
  224.     :querya        Singe-character query for quote
  225.     :querysr    Search & Replace single-character query
  226.  
  227.  Other sections may be given as well for organization purposes or for
  228.  use with the '-keymap' option.
  229.  
  230.  Use:
  231.  :inherit name        To copy the named section into the current one
  232.  :delete key        To delete a key sequence from the current section
  233.  
  234.  Keys:
  235.  
  236.  Use ^@ through ^_ and ^? for Ctrl chars
  237.  Use SP for space
  238.  Use a TO b to generate a range of characters
  239.  
  240.  You can also use termcap string capability names.  For example:
  241.  
  242.     .ku        Up
  243.     .kd        Down
  244.     .kl        Left
  245.     .kr        Right
  246.     .kh        Home
  247.     .kH        End
  248.     .kI        Insert
  249.     .kD        Delete
  250.     .kP        PgUp
  251.     .kN        PgDn
  252.     .k1 - .k9    F1 - F9
  253.     .k0        F0 or F10
  254.     .k;        F10
  255.  
  256.  Macros:
  257.  
  258.  Simple macros can be made by comma seperating 2 or more command names.  For
  259.  example:
  260.  
  261.  bof,bol    ^T Z        Goto beginning of last line
  262.  
  263.  Also quoted matter is typed in literally:
  264.  
  265.  bol,">",dnarw    .k1        Quote news article line
  266.  
  267.  Macros may cross lines if they end with ,
  268.  
  269. :windows        Bindings common to all windows
  270. type        ^@ TO  
  271. abort        ^K Q
  272. abort        ^K ^Q
  273. abort        ^K q
  274. abort        ^C
  275. arg        ^Q Q
  276. arg        ^Q ^Q
  277. arg        ^Q q
  278. explode        ^K I
  279. explode        ^K ^I
  280. explode        ^K i
  281. help        ^J
  282. help        ^K H
  283. help        ^K ^H
  284. help        ^K h
  285. hnext        ^[ .
  286. hprev        ^[ ,
  287. math        ^Q M
  288. math        ^Q ^M
  289. math        ^Q m
  290. msg        ^[ H
  291. msg        ^[ ^H
  292. msg        ^[ h
  293. nextw        ^K N
  294. nextw        ^K ^N
  295. nextw        ^K n
  296. pgdn        .kN        Screen down
  297. pgdn        ^[ [ 6 ~
  298. pgup        .kP        Screen up
  299. pgup        ^[ [ 5 ~
  300. play        ^[ 0 TO 9
  301. prevw        ^K P
  302. prevw        ^K ^P
  303. prevw        ^K p
  304. query        ^[ ?
  305. record        ^[ (
  306. retype        ^]
  307. rtn        ^M
  308. shell        ^K Z
  309. shell        ^K ^Z
  310. shell        ^K z
  311. stop        ^[ )
  312.  
  313. :main            Text editing window
  314. :inherit windows
  315.  
  316.  Spell-check macros
  317. :def spellfile filt,"cat >ispell.tmp;ispell ispell.tmp </dev/tty >/dev/tty;cat ispell.tmp;/bin/rm ispell.tmp",rtn,retype
  318. :def spellword psh,nextword,markk,prevword,markb,filt,"cat >ispell.tmp;ispell ispell.tmp </dev/tty >/dev/tty;tr -d <ispell.tmp '\\012';/bin/rm ispell.tmp",rtn,retype,nextword
  319. spellfile    ^Q l
  320. spellfile    ^Q L
  321. spellfile    ^Q ^L
  322. spellword    ^Q n
  323. spellword    ^Q N
  324. spellword    ^Q ^N
  325.  
  326. rtarw,prevword,markb,nextword,markk    ^K T
  327. rtarw,prevword,markb,nextword,markk    ^K ^T
  328. rtarw,prevword,markb,nextword,markk    ^K t
  329. run        ^[ !
  330. isrch        ^[ s
  331. isrch        ^[ S
  332. isrch        ^[ ^S
  333. rsrch        ^[ r
  334. rsrch        ^[ R
  335. rsrch        ^[ ^R
  336. backw        ^[ o
  337. backw        ^[ ^O
  338. yankpop        ^[ y
  339. yankpop        ^[ Y
  340. yankpop        ^[ ^Y
  341. parserr        ^[ E
  342. parserr        ^[ ^E
  343. parserr        ^[ e
  344. nxterr        ^[ =
  345. prverr        ^[ -
  346. edit,rtn,filt,query,parserr    ^[ ^C
  347. edit,rtn,filt,query,parserr    ^[ c
  348.  
  349. quote8        ^\        Quote Meta chars
  350. quote        ^P        Quote Ctrl chars
  351.  
  352. backs        ^?        Backspace
  353. backs        ^H
  354. bknd        ^K '        Shell window
  355. bkwdc        ^Q H ^@ TO  
  356. bkwdc        ^Q ^H ^@ TO  
  357. bkwdc        ^Q h ^@ TO  
  358. blkcpy        ^K C        Copy marked block
  359. blkcpy        ^K ^C
  360. blkcpy        ^K c
  361. blkdel        ^K Y        Delete marked block
  362. blkdel        ^K ^Y
  363. blkdel        ^K y
  364. blkmove        ^K V        Move marked block
  365. blkmove        ^K ^V
  366. blkmove        ^K v
  367. blksave        ^K W        Save marked block
  368. blksave        ^K ^W
  369. blksave        ^K w
  370. bof        ^Q R        Goto beginning of file
  371. bof        ^Q ^R
  372. bof        ^Q r
  373. bol        .kh        Goto beginning of line
  374. bol        ^Q S
  375. bol        ^Q ^S
  376. bol        ^Q s
  377. crawll        ^Q ,
  378. crawlr        ^Q .
  379. tos        ^Q E
  380. tos        ^Q ^E
  381. tos        ^Q e
  382. center        ^K A        Center line
  383. center        ^K ^A
  384. center        ^K a
  385. delbol        ^Q ^H
  386. delbol        ^Q ^?
  387. delch        .kD        Delete character
  388. delch        ^G
  389. deleol        ^Q Y        Delete to end of line
  390. deleol        ^Q ^Y
  391. deleol        ^Q y
  392. dellin        ^Y        Delete entire line
  393. delw        ^T        Delete word to right
  394. dnarw        .kd        Go down
  395. dnarw        ^X
  396. dnarw        ^[ O B
  397. dnarw        ^[ [ B
  398. dnslide        ^Z
  399. edit        ^K E        Edit a file
  400. edit        ^K ^E
  401. edit        ^K e
  402. eof        ^Q C        Go to end of file
  403. eof        ^Q ^C
  404. eof        ^Q c
  405. eol        .kH        Go to end of line
  406. eol        ^Q D
  407. eol        ^Q ^D
  408. eol        ^Q d
  409. bos        ^Q X
  410. bos        ^Q ^X
  411. bos        ^Q x
  412. exsave        ^K X        Save and exit
  413. exsave        ^K ^X
  414. exsave        ^K x
  415. ffirst        ^Q F        Find first
  416. ffirst        ^Q ^F
  417. ffirst        ^Q f
  418. qrepl        ^Q A        Search & replace
  419. qrepl        ^Q ^A
  420. qrepl        ^Q a
  421. filt        ^K /        Filter block
  422. fnext        ^L        Find next
  423. format        ^B        Format paragraph
  424. fwrdc        ^Q G ^@ TO  
  425. fwrdc        ^Q ^G ^@ TO  
  426. fwrdc        ^Q g ^@ TO  
  427. gomark        ^Q 0 TO 9
  428. groww        ^K G        Grow window
  429. groww        ^K ^G
  430. groww        ^K g
  431. insc        ^@
  432. insf        ^K R        Insert a file
  433. insf        ^K ^R
  434. insf        ^K r
  435. macros        ^[ d        Dump macros
  436. macros        ^[ ^D
  437. mode,"T"    ^V        Insert/Overtype
  438. mode,"T"    .kI
  439. lindent        ^K ,        Indent to left
  440. line        ^Q I        Goto line no.
  441. line        ^Q ^I
  442. line        ^Q i
  443. ltarw        .kl        Go left
  444. ltarw        ^S
  445. ltarw        ^[ O D
  446. ltarw        ^[ [ D
  447. markb        ^K B        Set beginning of marked block
  448. markb        ^K ^B
  449. markb        ^K b
  450. markk        ^K K        Set end of marked block
  451. markk        ^K ^K
  452. markk        ^K k
  453. markl        ^K L
  454. markl        ^K ^L
  455. markl        ^K l
  456. mode        ^O
  457. nextpos        ^K =        Goto next position in position history
  458. nextword    ^F        Goto next word
  459. open        ^N        Split line
  460. pgdn        ^C
  461. pgup        ^R
  462. prevpos        ^Q P
  463. prevpos        ^Q ^P
  464. prevpos        ^Q p
  465. prevword    ^A        Previous word
  466. redo        ^^        Redo changes
  467. rindent        ^K .        Indent to right
  468. rtarw        .kr        Go right
  469. rtarw        ^D
  470. rtarw        ^[ O C
  471. rtarw        ^[ [ C
  472. save        ^K D        Save file
  473. save        ^K S
  474. save        ^K ^D
  475. save        ^K ^S
  476. save        ^K d
  477. save        ^K s
  478. setmark        ^K 0 TO 9
  479. shrinkw        ^K T        Shrink window
  480. shrinkw        ^K ^T
  481. shrinkw        ^K t
  482. splitw        ^K O        Split window
  483. splitw        ^K ^O
  484. splitw        ^K o
  485. stat        ^Q ?        Show status
  486. tag        ^K ;
  487. tomarkb        ^Q B        Go to beginning of marked block
  488. tomarkb        ^Q ^B
  489. tomarkb        ^Q b
  490. tomarkk        ^Q K        Go to end of marked block
  491. tomarkk        ^Q ^K
  492. tomarkk        ^Q k
  493. tomatch        ^Q [        Goto matching parenthasis
  494. tomatch        ^Q ^[
  495. tomatch        ^Q ]
  496. tomatch        ^Q ^]
  497. undo        ^U        Undo changes
  498. undo        ^_
  499. uparw        .ku        Go up
  500. uparw        ^E
  501. uparw        ^[ O A
  502. uparw        ^[ [ A
  503. upslide        ^W
  504.  
  505. :prompt            Prompt windows
  506. :inherit main
  507. abort        ^C
  508. complete    ^I
  509.  
  510. :menu            Selection menus
  511. :inherit windows
  512. abort        ^[ ^[
  513. backsmenu    ^?
  514. backsmenu    ^H
  515. bofmenu        ^Q R
  516. bofmenu        ^Q ^R
  517. bofmenu        ^K r
  518. bolmenu        .kh
  519. bolmenu        ^Q S
  520. bolmenu        ^Q ^S
  521. bolmenu        ^Q s
  522. dnarwmenu    .kd
  523. dnarwmenu    ^X
  524. dnarwmenu    ^[ [ B
  525. dnarwmenu    ^[ O B
  526. eofmenu        ^Q C
  527. eofmenu        ^Q ^C
  528. eofmenu        ^Q c
  529. eolmenu        .kH
  530. eolmenu        ^Q D
  531. eolmenu        ^Q ^D
  532. eolmenu        ^Q d
  533. ltarwmenu    .kl
  534. ltarwmenu    ^S
  535. ltarwmenu    ^[ [ D
  536. ltarwmenu    ^[ O D
  537. rtarwmenu    .kr
  538. rtarwmenu    ^D
  539. rtarwmenu    ^[ [ C
  540. rtarwmenu    ^[ O C
  541. rtn        SP
  542. rtn        ^I
  543. rtn        ^K H
  544. rtn        ^K h
  545. rtn        ^K ^H
  546. rtn        ^J
  547. uparwmenu    .ku
  548. uparwmenu    ^E
  549. uparwmenu    ^[ [ A
  550. uparwmenu    ^[ O A
  551.  
  552. :query            Single-key query window
  553. :inherit windows
  554.  
  555. :querya            Single-key query window for quoting
  556. type        ^@ TO  
  557.  
  558. :querysr        Search & replace query window
  559. type        ^@ TO  
  560.